package com.pricerunner.aop.repository;

import com.pricerunner.aop.model.Retailer;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

import java.text.MessageFormat;

/**
 * @author: gmola, giulio.mola@gmail.com
 */
@Repository("retailerDAO")
public class RetailerDAOImpl implements RetailerDAO {

    private static final Logger LOG = Logger.getLogger(RetailerDAOImpl.class);

    public boolean persist(Retailer retailer) {
        LOG.info(MessageFormat.format("store retailer: {0} - mail: {1}",
                retailer.getName(), retailer.getMailAddress()));
        return true;
    }
    
}
